﻿using Basic.FlowRemoteModel.Flow;
using Basic.FlowRemoteModel.Flow.Model;
using Basic.FlowService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowService.RpcEvent
{
    internal class FlowFormEvent : IRpcApiService
    {
        private readonly IFlowFormService _Service;

        public FlowFormEvent ( IFlowFormService service )
        {
            this._Service = service;
        }
        public long[] GetFlowFormId ( GetFlowFormId obj )
        {
            return this._Service.GetFormIds(obj.Id);
        }
        public FlowFormDto[] GetFlowFormList ( GetFlowFormList obj )
        {
            return this._Service.GetForms(obj.Id);
        }
    }
}
